package com.link.base.tencent.ocr.service;

import com.link.base.tencent.ocr.model.OcrImg;

/**
 * ocr服务
 * 
 * @author ouyangzhenqiang
 * @date 2018/12/29
 */
public interface OcrService {

    /**
     * 获取/存储图片资源用于后续的接口传输
     *
     * @author ouyangzhenqiang
     * @date 2018/12/29
     * @param record
     * @param imgType 图片存储类别
     */
    String getImgUrl(OcrImg record, String imgType) throws Exception;

    /**
     * 名片识别
     *
     * @author ouyangzhenqiang
     * @date 2018/12/29
     * @param record
     */
    String businessCard(OcrImg record) throws Exception;

    /**
     * 身份证识别
     *
     * @author ouyangzhenqiang
     * @date 2018/12/29
     * @param record
     */
    String idCard(OcrImg record) throws Exception;
}
